#ifndef L_BLOCK_H
#define L_BLOCK_H

#include <QWidget>

namespace Ui {
class L_Block;
}

class L_Block : public QWidget
{
    Q_OBJECT

public:
    explicit L_Block(QWidget *parent = 0);
    ~L_Block();

private slots:
    void on_spinBox_valueChanged(int arg1);

private:
    Ui::L_Block *ui;
  int mp[128][128];
    int t[2][2]={{1,1},{1,0}};
    const int bor_x = 0;
    const int bor_y = 0;
    const int block_max = 512;

    int cell_size;
    QPainter *paint;

    QColor *bgColor[21];
    void paintEvent(QPaintEvent *);
    void initColor();
    void showStart(int);
    void sleep(unsigned int);
};

#endif // L_BLOCK_H
